import Axios from './axios'

export function regiestUser(datas){
    return Axios({
        url: "/register",
        method: "post",
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',//设置请求头请求格式为JSON
                },
        data: datas

    })
}

export function getAllUser(){
    return Axios({
        url: "/getUser",
        method:"get",
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',//设置请求头请求格式为JSON
      },
    })
}
